package com.xhs.utils;

/**
 * @Auther: admin
 * @Date: 2021-10-15
 */
public class StringUtils {
    /**
     * @description:
     * @param strs 要校验的字符串 可变参数
     * @return:
     */
    public static boolean isNotEmpty(String... strs){
        boolean r=true;
        for(String s:strs){
            if(s==null || s.length()==0){
                r=false;
                break;
            }
        }
        return r;
    }
    public static boolean checkphone(String str){
        if (StringUtils.isNotEmpty(str)){
            return str.matches("^1{1}[3-9]{1}[0-9]{9}$");
        }
        return false;
    }
}
